Family Polymorphism

نویسنده

  • Erik Ernst
چکیده

This paper takes polymorphism to the multi-object level. Traditional inheritance, polymorphism, and late binding interact nicely to provide both flexibility and safety – when a method is invoked on an object via a polymorphic reference, late binding ensures that we get the appropriate implementation of that method for the actual object. We are granted the flexibility of using different kinds of objects and different method implementations, and we are guaranteed the safety of the combination. Nested classes, polymorphism, and late binding of nested classes interact similarly to provide both safety and flexibility at the level of multi-object systems. We are granted the flexibility of using different families of kinds of objects, and we are guaranteed the safety of the combination. This paper highlights the inability of traditional polymorphism to handle multiple objects, and presents family polymorphism as a way to overcome this problem. Family polymorphism has been implemented in the programming language gbeta, a generalized version of Beta, and the source code of this implementation is available under GPL.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

CYP1B1 L432V Polymorphism and Lung Cancer Risk in the Iranian Population

Background: Lung cancer is considered as one of the most frequent cancers worldwide, and has been the cause of more than one <span style="font-variant...

متن کامل

The impact of BMI, Smoking, Family History and Ala 119 Ser (rs1056827) Polymorphism of CYP1B1*2 Genes with Susceptibility to Prostate Cancer among Iranian Men

Background and Aims: The genes involved in detoxification and the elimination of toxic metabolites have a vital role in cancer pathogenesis. Also, there is evidence that higher amounts of body fat are associated with increased risks of several cancers. The current study aims to identify the relationship of age, body mass index (BMI), smoking, family history, and polymorphism rs1056827 of CYP1B1...

متن کامل

Analysis of Human Leukocyte Antigen class II Gene Polymorphism in Iranian Patients with Papillon-Lefevre Syndrome: a Family Study

Background: Papillon-Lefevre syndrome (PLS) is a rare autosomal recessive disorder characterized by palmoplantar hyperkeratosis and early development of aggressive pe-riodontitis. Although cathepsin C (CTSC) gene mutations have been established in about 70-80% of PLS patients, it is assumed that the patients may have dysfunctioning of immune defense mechanisms. Objective: To assess the associat...

متن کامل

Polymorphism in the First Intron of Interferon-Gamma Gene (+874T→A) in Iranian Patients with Brucellosis

Background: Brucella is a gram-negative bacterium, causing acute and chronic infection in humans and animals. Cell-mediated immunity is the main protective immune response against Brucella spp. Activation of macrophages by IFN-γ and generation of reactive oxygen intermediates and nitric oxide are the main immunologic mechanisms responsible for control of Brucella infection. Objective: To invest...

متن کامل

Polymorphism of the SCNN1g Gene and its Association with Eggshell Quality

Eggshell quality is the main trait to assess egg quality. Marker assisted selection can be used to improve this trait. During eggshell formation, a mass of inorganic minerals is deposited. The Sodium Channel (SCNN1) gene family plays an essential role in cation transportation and SCNN1g is a member of this gene family. The objective of this study was to estimate the frequency of SCNN1g gene var...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2001